﻿using Microsoft.EntityFrameworkCore;
using System;
using Volo.Abp.Data;
using Volo.Abp.EntityFrameworkCore;
using Xms.Abp.Data;
using Xms.Abp.Storage;

namespace PermissionManagement.Storage;

[DynamicConnStringName(typeof(PermissionManagementDbProperties), nameof(PermissionManagementDbProperties.ConnectionStringName))]
public class PermissionManagementStorage : XmsStorage<PermissionManagementStorage>, IPermissionManagementStorage
{
    public PermissionManagementStorage(DbContextOptions<PermissionManagementStorage> options, IServiceProvider serviceProvider) : base(options, serviceProvider)
    {
    }

    public DbSet<PermissionGrant> PermissionGrants { get; set; }

    //protected override void OnModelCreating(ModelBuilder builder)
    //{
    //    base.OnModelCreating(builder);

    //    //builder.ConfigurePermissionManagement();
    //}
}
